package com.hornsun.data.dbo;

public class Organization {
    private Integer id;

    private String organizationName;

    private Integer indexs;

    private Integer pid;

    private Byte hasChild;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrganizationName() {
        return organizationName;
    }

    public void setOrganizationName(String organizationName) {
        this.organizationName = organizationName == null ? null : organizationName.trim();
    }

    public Integer getIndexs() {
        return indexs;
    }

    public void setIndexs(Integer indexs) {
        this.indexs = indexs;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Byte getHasChild() {
        return hasChild;
    }

    public void setHasChild(Byte hasChild) {
        this.hasChild = hasChild;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", organizationName=").append(organizationName);
        sb.append(", indexs=").append(indexs);
        sb.append(", pid=").append(pid);
        sb.append(", hasChild=").append(hasChild);
        sb.append("]");
        return sb.toString();
    }
}